﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AgileShare.Framework.SiteProvisioning.Definitions
{
	/// <summary>
	/// A List of FieldDefinitions.
	/// </summary>
	public class FieldDefinitionCollection : List<FieldDefinition>
	{
		public Guid[] FieldIds
		{
			get
			{
				return this.Select(x => x.ID).ToArray();
			}
		}

		public string[] FieldNames
		{
			get
			{
				return this.Select(x => x.Name).ToArray();
			}
		}
	}
}
